<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "member_integral".
 *
 * @property int $id
 * @property int $member_id
 * @property int $integral
 * @property int $integral_source 1 新审核用户 2 推荐新用户 3 工作人员给与 4 活动积分
 * @property int $update_time
 * @property int $create_time
 */
class MemberIntegral extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'member_integral';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['member_id', 'integral', 'update_time', 'create_time'], 'required'],
            [['member_id', 'integral', 'integral_source', 'update_time', 'create_time'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'member_id' => 'Member ID',
            'integral' => 'Integral',
            'integral_source' => 'Integral Source',
            'update_time' => 'Update Time',
            'create_time' => 'Create Time',
        ];
    }
}
